package cn.teacher.service;

import cn.teacher.pojo.Teacher;
import cn.teacher.pojo.dto.TeacherDTO;

public interface TeacherService {

    /**
     * 移除老师
     *
     * @param userId
     * @return
     * @throws Exception
     */
    boolean remove(long userId);


    /**
     * 查询老师扩展信息
     *
     * @param userId
     * @return
     */
    TeacherDTO find(long userId);


    /**
     * 添加老师信息
     *
     * @param student
     * @return
     * @throws Exception
     */
    boolean add(Teacher student);


    /**
     * 更新老师信息
     * @param teacher
     * @return
     */
    boolean modify(Teacher teacher);

}
